<template>
    <div>
        <van-nav-bar title="资金管理" left-text="返回"  class="leader"  left-arrow @click-left="handleBack">
            <template #right >
               <van-icon name="ellipsis" size='26px' color='#333' class="pullTab" @click.stop="ShowHidden = !ShowHidden" />
               <Pulltab 
                v-if="ShowHidden" 
                @click.stop=""
               />
            </template>
        </van-nav-bar>
        <div>
            <p class="money">总资产 （元）
               
                <van-button type="primary" text="充值" @click="show = true" square  color="#00D3C2" size="small" class="btn"/>
                <van-overlay :show="show" @click="show = false">
                    <div class="wrapper" @click="show = true">
                            <img src="../assets/img/zfb.jpg" class="block">
                    </div>
                </van-overlay>
                <van-button square type="primary" class="btn" size="small" color="#FF9F4F">提现</van-button>
            </p>
            <ul class="redTab" >
                <li class="redTab-num">
                    0.00
                </li>
                <li class="tabText">可用余额</li>
            </ul>
            <ul class="redTab" style="border-left:1px solid #E9E9E9;border-right:1px solid #E9E9E9">
                <li class="redTab-num">
                    0
                </li>
                <li class="tabText">可用健康豆</li>
            </ul>
            <ul class="redTab" >
                <li class="redTab-num">
                    20
                </li>
                <li class="tabText">可用积分</li>
            </ul>
        </div>
        <van-tabs type="card" color="#00D2C3" class="tabs">
            <van-tab title="全部">会员注册送积分</van-tab>
            <van-tab title="充值记录">您还没有任何记录哦~</van-tab>
            <van-tab title="积分">会员注册送积分</van-tab>
            <van-tab title="提现">您还没有任何记录哦~</van-tab>
        </van-tabs>
         
        <Footer/>
    </div>
</template>

<script>
import Pulltab from '../components/Pulltab.vue'
import Footer from '../components/Footer.vue'
    export default {
        components: {
            Pulltab,
            Footer
        },
        data() {
            return {
                checked:true,
                ShowHidden: false,
                show: false
            }
        },
        methods: {
            HiddenClick () {
                this.ShowHidden = false
            },
            onClick( name,title) {
                Toast(title);
            },
            handleBack(){
                this.$router.go(-1)
            },
        },
        mounted () {
            document.addEventListener('click', this.HiddenClick)
        },
    }
</script>


<style scoped lang="less">
.money{
    width: 350px;
    font-size: 18px;
    margin: 8px 5px 5px 15px;
}
.btn{
    font-size: 14px;
    width: 60px;
    border-radius: 5px;
    margin-left:50px ;
    display: inline-block;
}
.redTab{
    margin: 10px 0;
    display: inline-block;
    width: 32%;
    >li{
        text-align: center;
    }
    >.tabText{
        font-size: 14px;
    }
    >.redTab-num{
        font-size: 16px;
        font-weight: bold;
        color: #00D2C3;
    }
}
.tabs{
    margin-top: 20px;
}
.wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

.block {
    width: 260px;
    height: 400px;
    background-color: #fff;
    
}

::v-deep .van-nav-bar__left i{
    color:#444;
    font-size: 20px;
}
::v-deep .van-nav-bar__left span,::v-deep .van-nav-bar__title{
    color: #444;
    font-size: 16px;
}
</style>